package study.mybatis.database.cpool.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import study.mybatis.database.cpool.mapper.UserBaseMapper;

@Slf4j
@RestController
public class UserController {

    @Autowired
    private UserBaseMapper userBaseMapper;

    @RequestMapping("/user/get")
    public String user(Long ubId) {
        userBaseMapper.selectById(ubId);
        return "ok";
    }
}
